﻿namespace MicroCloud.Systems
{
    /// <summary>
    /// 设置输出DTO
    /// </summary>
    public class SettingOutputDto
    {
        #region 属性
        /// <summary>
        /// 获取 设置类型全名
        /// </summary>
        public string SettingTypeName { get; }

        /// <summary>
        /// 获取 设置信息
        /// </summary>
        public ISetting Setting { get; }

        #endregion

        #region 构造函数
        /// <summary>
        /// 初始化一个设置输出DTO <see cref="SettingOutputDto"/> 的新实例
        /// </summary>
        /// <param name="setting"></param>
        public SettingOutputDto(ISetting setting)
        {
            Setting = setting;
            SettingTypeName = setting.GetType().GetFullNameWithModule();
        }

        #endregion

    }

}
